<?php
	include_once 'isLogin.php';
	/*
	 *  array('label'=>'用户管理','left'=>'left.php?action=users','url'=>' users_list.php'),
	            array('label'=>'分类设置','left'=>'left.php?action=categories','url'=>' categories_stting.php'),
	            array('label'=>'资讯管理','left'=>'left.php?action=information','url'=>' information_list.php'),
	 * */
	$action = $_GET['action']!=false?$_GET['action']:'index';
	
	if($action=="index"){
		$title = "后台首页";
	
		$list[] = array("url"=>"right.php","title"=>"后台首页","hover"=>'1');
		$list[] = array("url"=>"xgmm.php","title"=>"修改密码");
		//$list[] = array("url"=>"banklogo_add.php","title"=>"银行添加");
		$list[] = array("url"=>"service_add.php","title"=>"客服添加");
		/*$list[] = array("url"=>"javascript:;","title"=>"管理",
						  "content"=>array(
						  		array("url"=>"common_list.php","title"=>"列表"),
						  		array("url"=>"common_add.php","title"=>"添加"),
						  		array("url"=>"common_sort.php","title"=>"排序"),
						  )
					);*/
	}
	if($action=="company"){
	    $title = "公司管理";
           
	    $list[] = array("url"=>"company_list.php","title"=>"公司列表",
	       /* "content"=>array(
	            array("url"=>"company_add.php","title"=>"添加"),
				 array("url"=>"company_add.php","title"=>"添加s"),
	        )*/
	    );
	    $list[] = array("url"=>"companiey_detail_title_list.php","title"=>"公司详情管理");
        $list[] = array("url"=>"company_nocheck_list.php","title"=>"待审核公司列表");
		
	   /* $list[] = array("url"=>"companies_level_list.php","title"=>"公司评级列表");
	    $list[] = array("url"=>"companies_trade_list.php","title"=>"公司行业列表");*/
		
	
	}
	if($action=="users"){
	    $title = "用户管理";
	    $list[] = array("url"=>"users_list.php","title"=>"用户列表",
	        "content"=>array(
	         array("url"=>"users_add.php","title"=>"添加"),
	        )
	    );
	}
	if($action=="categories"){
	    $title = "分类设置";
	    $list[] = array("url"=>"categories_stting.php","title"=>"管理公司分类
	        ",
	        // "content"=>array(
	        //     array("url"=>"categories_add.php","title"=>"添加"),
	        // )
	    );
	
	}
	if($action=="feed"){
	    $title = "举报管理";
	    $list[] = array("url"=>"feed_list.php","title"=>"用户举报列表");
	
	}
	if($action=="information"){
	    $title = "资讯管理";
	    $list[] = array(
	        "url"=>"information_add.php","title"=>"发布资讯",
	    
	    );
	    $list[] = array("url"=>"information_list.php","title"=>"资讯列表",
	        );
	   
	
	}
        if($action=="accounting_management"){
	    $title = "财务管理";
            $list[] = array("url"=>"accounting_wil_check.php","title"=>"待结账明细");
            $list[] = array("url"=>"accounting_confirming.php","title"=>"转账中明细");
            $list[] = array("url"=>"accounting_checked.php","title"=>"已结账明细");
	        
	}
	if($action=='setting'){
		$title = "网站设置";
	
		$table_name = "explains";
		$sql = $table_name;
		$explains=$commonc->getList($sql,'');
		foreach($explains['result'] as $k=>$v){
			$content[] = array('url'=>'explains.php?id='.$v['id'],'title'=>$v['title']);
		}
		
		$list[] = array("url"=>"set.php?op=info","title"=>"网站信息","hover"=>'1');
		$list[] = array("url"=>"set.php?op=email","title"=>"企业邮箱");
		/*
		$list[] = array("url"=>"javascript:;","title"=>"焦点图管理",
						"content"=>array(
								array("url"=>"focus_list.php?class=index","title"=>"列表"),
								array("url"=>"focus_add.php?class=index","title"=>"添加"),
						)
				);
		$list[] = array("url"=>"javascript:;","title"=>"网站说明","content"=>$content);
		$list[] = array("url"=>"keyword.php","title"=>"字典");
		*/
	}

	
	if($action=='admin'){
		$title = "管理员";
	
		$list[] = array("url"=>"admin_list.php","title"=>"管理员列表","hover"=>'1');
		$list[] = array("url"=>"admin_company_list.php","title"=>"公司管理表");
		$list[] = array("url"=>"admin_add.php","title"=>"添加管理员");
	}

	$smarty->assign("title",$title);
	$smarty->assign("list",$list);
	$smarty->display("left.html");
?>